package com.cskaoyan.mapper;

import com.cskaoyan.bean.MarketGoods;
import com.cskaoyan.bean.MarketGoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MarketGoodsMapper {
    long countByExample(MarketGoodsExample example);

    int deleteByExample(MarketGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketGoods record);

    int insertSelective(MarketGoods record);

    List<MarketGoods> selectByExampleSelective(@Param("example") MarketGoodsExample example, @Param("selective") MarketGoods.Column ... selective);


    List<MarketGoods> selectByExampleWithBLOBs(MarketGoodsExample example);

    List<MarketGoods> selectByExample(MarketGoodsExample example);

    MarketGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketGoods record, @Param("example") MarketGoodsExample example);

    int updateByExampleWithBLOBs(@Param("record") MarketGoods record, @Param("example") MarketGoodsExample example);

    int updateByExample(@Param("record") MarketGoods record, @Param("example") MarketGoodsExample example);

    int updateByPrimaryKeySelective(MarketGoods record);

    int updateByPrimaryKeyWithBLOBs(MarketGoods record);

    int updateByPrimaryKey(MarketGoods record);

    Integer queryGoodsTotal();


    void deleteByid(Integer id);

    List<MarketGoods> selectHotGoods(int market_wx_index_hot);

    List<MarketGoods> selectNewGoods(int market_wx_index_new);

    List<MarketGoods> selectGoodsByCatId(@Param("id") int id, @Param("goods") int market_wx_catlog_goods);

    int selectCount();

    int selectCountByCatId(int id);


    int selectCatIdById(Integer id);

    List<MarketGoods> selectByCatId(@Param("categoryId") int categoryId);

    String selectGoodsSn(Integer goodsId);

    String selectGoodsName(Integer goodsId);
}
